package com.victor.entity.activity_tuikuan;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 团购表
 * 
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "act_tuangou")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ActTuangou {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "tg_id", unique = true, nullable = false, length = 11)
	private Integer tg_id;// 主键id

	@Column(name = "table_name", length = 50)
	private String table_name;// 表区分 -- 表名

	@Column(name = "table_id", length = 50)
	private String table_id;// 对应表id

	@Column(name = "tg_price", length = 50)
	private String tg_price;// 设置团购价

	@Column(name = "tg_number", length = 50)
	private String tg_number;// 成团人数

	@Column(name = "tg_limitedtime", length = 50)
	private String tg_limitedtime;// 成团限时

	@Column(name = "tg_starttime", length = 50)
	private String tg_starttime;// 开始时间
}
